﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="DersKonu.aspx.cs"
    Inherits="DokuzEylul.Sinav.SinavPaneli.DersKonu" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="insertheader">
        <asp:Label ID="lblheader" runat="server" Text="Kullanıcı Düzenleme"></asp:Label>
    </div>
    <div>
        <asp:Literal ID="ltlinfo" runat="server" EnableViewState="false"></asp:Literal></div>
    <div style="padding: 5px; border: solid 1px darkgray; width: 100%; background-color: #D7E6F4;">
        <asp:Panel ID="pnlcontent" runat="server" Enabled="false">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="İçerik"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtIcerik" runat="server" Width="150px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ErrorMessage="*" ControlToValidate="txtIcerik" ValidationGroup="derskonu"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="Başlık"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtBaslik" runat="server" Width="150px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ErrorMessage="*" ControlToValidate="txtBaslik" ValidationGroup="derskonu"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="Parent"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="DropDownList1" runat="server" Width="150px" 
                        DataTextField="Icerik" DataValueField="SinavDersKonuID" 
                            ondatabinding="DropDownList1_DataBinding">
                        </asp:DropDownList>
                    </td>
                    <td>
                        
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
     <div>
        <asp:Button ID="btnYeni" runat="server" Width="100px" Text="Yeni" onclick="btnYeni_Click"
            />&nbsp;
    <asp:Button ID="btnKaydet" runat="server" Width="100px" Text="Kaydet" 
            ValidationGroup="derskonu" onclick="btnKaydet_Click" />&nbsp;
        <asp:Button ID="btnSil" runat="server" Width="100px" Text="Sil" 
            OnClientClick="return confirm('Silmek istediğinize emin misiniz?');" onclick="btnSil_Click"   
            />&nbsp;
    </div>
     <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
         AllowPaging="True" AllowSorting="True" Width="100%" CssClass="gridview" 
         AlternatingRowStyle-CssClass="even" DataKeyNames="SinavDersKonuID" 
             GridLines="None" ondatabinding="GridView1_DataBinding" 
             onselectedindexchanged="GridView1_SelectedIndexChanged">
         <Columns>
            <asp:CommandField HeaderText="Seç" ShowSelectButton="True" />
            <asp:BoundField DataField="SinavDersKonuID" HeaderText="Kullanıcı ID" Visible="false" />
            <asp:BoundField DataField="Icerik" HeaderText="Kullanıcı Adı" />
            <asp:BoundField DataField="Baslik" HeaderText="E-Posta" />
         </Columns>
        <AlternatingRowStyle CssClass="even"></AlternatingRowStyle>
        </asp:GridView>
    </div>
</asp:Content>
